#include "OnTestMsg.h"
#include "string.h"

std::string OnTestMsg::toStr()
{
    return std::string(data_);
}

void OnTestMsg::init(const int num)
{
    snprintf(data_, 512, "%d", num);
}